<?php
namespace Wxpay\Controller;
use Org\Util\Wxpay\CLogFileHandler;
use Org\Util\Wxpay\Log;

class CommonController
{
    /**--初始化日志--**/
    public function log($log_addr)
    {
        $logHandler= new CLogFileHandler($log_addr);
        $log = Log::Init($logHandler, 15);
        return $log;
    }

    /**--打印输出数组信息--**/
    public function printf_info($data)
    {
        $return_param = C('RETURN_PARAM');
        foreach($data as $key=>$value){
            echo "<font color='#00ff55;'>$return_param[$key]</font> : $value <br/>";
        }
    }
}